package br.com.peperoncino.view;

import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class TestJavaFXMain extends Application {

	/** Exemplo: Baseado no tutorial http://aprendendo-javafx.blogspot.com.br/ **/
	
	@Override
	public void start(Stage palco) throws Exception {

		VBox raiz = new VBox(10);
		raiz.setAlignment(Pos.CENTER);
		
		Label mensagemEstatica = new Label("Hello world!!");
		Button botao = new Button("Clicar");
		
		raiz.getChildren().addAll(botao, mensagemEstatica);
		
		Scene cena = new Scene(raiz, 250, 250);
		
		palco.setTitle("Teste");
		palco.setScene(cena);
		
		palco.show();
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		launch();
	}

}
